package com.hunter.api.mapper;

import com.hunter.api.bean.EntityBean;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface EntityMapper {
    @Select("SELECT *  FROM ab.entity " +
        "WHERE is_deleted = 0 and enabled = 1 and code = #{code} limit 1")
    @Results()
    EntityBean EntityInfo(EntityBean entity);
}
